C# coding standards for private member variables [closed]

Posted by Sasha on Stack Overflow See other posts from Stack Overflow or by Sasha
Published on 2009-04-13T12:50:44Z Indexed on 2010/04/25 19:33 UTC
Read the original article Hit count: 227

Filed under:
|
|

I saw two common approaches for coding standards for private member variables:

class Foo
{
    private int _i;
    private string _id;     
}


and 

class Foo
{
    private int m_i;
    private string m_id; 
}

I believe the latter is coming from C++. Also, many people specify type before the member variable: double m_dVal -- to indicate that is is a nonconstant member variable of the type double?

What are the conventions in C#?

© Stack Overflow or respective owner

Related posts about c#

Related posts about coding-style